package com.superlc.ssm.common.util;

/**
 * @ProjectName: ssm$
 * @Package: com.superlc.ssm.modular.sys.model$
 * @ClassName: ResponseEntity$
 * @Description: java类作用描述
 * @Author: super
 * @CreateDate: 2018/8/10$ 17:57$
 * @UpdateUser: 更新者
 * @UpdateDate: 2018/8/10$ 17:57$
 * @UpdateRemark: 更新内容
 * @Version: 1.0
 */
public class ResponseEntity<T> {
    public ResponseEntity(Integer code, String msg, T response) {
        this.code = code;
        this.msg = msg;
        this.response = response;
    }

    public ResponseEntity() {
    }

    @Override
    public String toString() {
        return "{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", response=" + response +
                '}';
    }

    private Integer code ;

    private String msg ;

    private T response;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getResponse() {
        return response;
    }

    public void setResponse(T response) {
        this.response = response;
    }
}
